
# This code is hosted on http://code.google.com/p/lenthorp/
# Freely available for use in applications, but should NOT be modified
# Email all comments to lenthorpresearch@gmail.com


import DataRetrieval.DividendInvestorUK.saveDividendInvestorUKDividend as diuk
import DataRetrieval.TrustNet.saveTrustNetDividend as tn

saveDividendFunctionsDict = {'dividendinvestoruk':diuk,
                          'trustnet':tn}

def getAndSaveData(source, ticker, dateStart, dateEnd):
    saveDividendFunctionsDict[source.lower()].getAndSaveData(ticker, dateStart, dateEnd)
    
